using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class SportCupInfo
    {
        #region CONSTRUCTORS
        public SportCupInfo()
        {

            this.m_cupID = Util.NULL_INT;
            this.m_cupName = Util.NULL_STRING;
            this.m_cupCode = Util.NULL_STRING;
            this.m_cupCodeOpen = Util.NULL_STRING;
            this.m_cupType = Util.NULL_BYTE;
        }

        public SportCupInfo(int cupID, string cupName, string cupCode, string cupCodeOpen, byte type)
        {

            this.m_cupID = cupID;
            this.m_cupName = cupName;
            this.m_cupCode = cupCode;
            this.m_cupCodeOpen = cupCodeOpen;
            this.m_cupType = type;
        }

        public SportCupInfo(DataRow dRow)
        {

            this.m_cupID = (int)Util.ReplaceDBNullTo(dRow["cupID"], Util.NULL_INT);
            this.m_cupName = Util.ReplaceDBNullTo(dRow["cupName"], Util.NULL_STRING).ToString();
            this.m_cupCode = Util.ReplaceDBNullTo(dRow["cupCode"], Util.NULL_STRING).ToString();
            this.m_cupCodeOpen = Util.ReplaceDBNullTo(dRow["cupCodeOpen"], Util.NULL_STRING).ToString();
            this.m_cupType = (byte)Util.ReplaceDBNullTo(dRow["cupType"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private int m_cupID;
        private string m_cupName;
        private string m_cupCode;
        private string m_cupCodeOpen;
        private byte m_cupType;
        #endregion

        #region PROPERTIES
        public int CupID
        {
            get
            {
                return this.m_cupID;
            }
            set
            {
                this.m_cupID = value;
            }
        }

        public string CupName
        {
            get
            {
                return this.m_cupName;
            }
            set
            {
                this.m_cupName = value;
            }
        }

        public string CupCode
        {
            get
            {
                return this.m_cupCode;
            }
            set
            {
                this.m_cupCode = value;
            }
        }

        public string CupCodeOpen
        {
            get
            {
                return this.m_cupCodeOpen;
            }
            set
            {
                this.m_cupCodeOpen = value;
            }
        }

        public byte CupType
        {
            get
            {
                return this.m_cupType;
            }
            set
            {
                this.m_cupType = value;
            }
        }

        #endregion

    }
}